// 用户登录接口携带参数的ts类型
export interface loginFormData {
  username: string,
  password: string
}

// 全部接口返回数据都拥有的ts类型
export interface ResponseData {
  code: number,
  message: string,
  ok:boolean
}

export interface loginResponseData extends ResponseData {
  data:string
}

export interface userInfoResponseData extends ResponseData {
  data: {
    routes: string[],
    buttons: string[],
    roles: string[],
    name: string,
    avatar:string
  }
}